package com.dayatang.hrm.compensation.infra.hibernate;

import org.apache.tapestry5.hibernate.HibernateSessionManager;

import com.dayatang.commons.repository.EntityRepositoryHibernateTapestry;
import com.dayatang.hrm.compensation.domain.SalaryParameterSetting;
import com.dayatang.hrm.compensation.domain.SalaryParameterSettingRepository;

public class SalaryParameterSettingRepositoryImpl extends
		EntityRepositoryHibernateTapestry<SalaryParameterSetting, Long>
		implements SalaryParameterSettingRepository {

	public SalaryParameterSettingRepositoryImpl(
			HibernateSessionManager sessionManager) {
		super(SalaryParameterSetting.class, sessionManager);
	}

	@Override
	public SalaryParameterSetting getPure(
			SalaryParameterSetting salaryParameterSetting) {
		getSessionManager().getSession().evict(salaryParameterSetting);
		return get(salaryParameterSetting.getId());
	}
}
